package com.youlin.dto.res;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import java.time.LocalDateTime;

@NoArgsConstructor
@Data
@Accessors(chain=true)
public class AdminResDto {

    /**
     * ID
     */
    @ApiModelProperty(value = "账户ID", position = 1)
    private Integer id;

    /**
     * 登录用户名
     */
    @ApiModelProperty(value = "登录用户名", position = 2)
    private String name;

    /**
     * 使用者姓名
     */
    @ApiModelProperty(value = "使用者姓名", position = 3)
    private String nick;

    /**
     * 使用者手机号
     */
    @ApiModelProperty(value = "使用者手机号", position = 4)
    private String tel;

    /**
     * 账户是否可用
     */
    @ApiModelProperty(value = "账户是否可用", position = 5)
    private Boolean usable;

    /**
     * 账户是否处于重置状态
     */
    @ApiModelProperty(value = "账户是否处于重置状态", position = 5)
    private Boolean reset;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间", dataType = "java.lang.String", example = "2020-02-02 08:08:08", position = 6)
    private LocalDateTime createTime;

    // 账号角色
    @ApiModelProperty(value = "账号角色", position = 7)
    private RoleResDto role;

}

